package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.LeaveStudent;
import cn.wolfcode.crm.query.QueryForObject;

import java.util.List;

public interface LeaveStudentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(LeaveStudent record);

    LeaveStudent selectByPrimaryKey(Long id);

    List<LeaveStudent> selectAll();

    int updateByPrimaryKey(LeaveStudent record);

    //    高级查询用
    int queryForTotal(QueryForObject qo);

    List<LeaveStudent> queryForList(QueryForObject qo);

    void changeRefundState(Long stuId);

    /**
     * 根据学员id查流失学员的姓名和退款金额
     * @param stuId
     * @return
     */
    LeaveStudent queryByIdForNameAndRefundAmount(Long stuId);

    void changeState(Long id);
}